package com.cat.springbootannocation.service.impl;

import com.cat.springbootannocation.entity.Product;
import com.cat.springbootannocation.mapper.ProductMapper;
import com.cat.springbootannocation.service.IProductService;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zss
 * @since 2020-09-16
 */
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements IProductService {
    @Autowired
    private ProductMapper productMapper;

    @Override
    public List<Product> getAllProduct() {
        List<Product> list = null;
        productMapper.getAllProduct();
        return list;
    }

    @Override
    public void updateProducts() {
        productMapper.updateProducts();
    }

}
